package ml.practicum.logistic;

import java.util.zip.DataFormatException;

/**
 * A LogisticValue stores a real number value between 0 and 1 with double precision
 * @author jfs230
 * @version design-0.0.1
 */
public interface LogisticValue extends Comparable<LogisticValue>{
	
	/**
	 * 
	 * @return a double value bigger or equal to 0 and smaller or equal to 1
	 */
	double getValue();
	
	/**
	 * If a value is bigger than 1 or smaller than 0 a IllegalArgumentException is thrown
	 * @param value as a double between 0 and 1
	 * @throws DataFormatException
	 */
	void setValue(double value) throws IllegalArgumentException;
}
